package simulation;

public class ReservationStationEntry {
	
	int instructionID;
	String operation;
	boolean done;
	String status;
	String resultOperand;
	String sourceOperand1;
	String sourceOperand2;
	boolean sourceReady1;
	boolean sourceReady2;
	String sourceStation1;
	String sourceStation2;
	int cyclesLeft;
	
	public ReservationStationEntry(){}
	
	public ReservationStationEntry(int iinstructionID, String ioperation, String istatus, String iresultOperand, String isourceOperand1, String isourceOperand2, boolean isourceReady1, boolean isourceReady2, String isourceStation1, String isourceStation2){
		
		instructionID = iinstructionID;
		operation = ioperation;
		done = false;
		status = istatus;
		resultOperand = iresultOperand;
		sourceOperand1 = isourceOperand1;
		sourceOperand2 = isourceOperand2;
		sourceReady1 = isourceReady1;
		sourceReady2 = isourceReady2;
		sourceStation1 = isourceStation1;
		sourceStation2 = isourceStation2;
		cyclesLeft = -1;
	}

	@Override
	public String toString() {
		return "ReservationStationEntry [instructionID=" + instructionID
				+ ", operation=" + operation + ", done=" + done + ", status="
				+ status + ", resultOperand=" + resultOperand
				+ ", sourceOperand1=" + sourceOperand1 + ", sourceOperand2="
				+ sourceOperand2 + ", sourceReady1=" + sourceReady1
				+ ", sourceReady2=" + sourceReady2 + ", sourceStation1="
				+ sourceStation1 + ", sourceStation2=" + sourceStation2
				+ ", cyclesLeft=" + cyclesLeft + "]";
	}
	
	
	
	
}
